<template>
  <div class="main">
    <title1 tit="找室友"></title1>
    <div class="contain"></div>
    <div class="card">
      <div class="single">
        <div class="one">
          <button>无房</button>
          <sapn>有意思的小伙伴一起来奋斗吧</sapn>
        </div>
        <div class="two">
          <img src="../../assets/NewarrivalImg/1.png" alt="" />
        </div>
        <div class="three">
          <img src="../../assets/toux2.png" alt="" />
          <div>12分钟前更新</div>
        </div>
      </div>
       <div class="single">
        <div class="one">
          <button>有房</button>
          <sapn>两个女生或一对情侣</sapn>
        </div>
        <div class="two">
          <img src="../../assets/NewarrivalImg/2.png" alt="" />
        </div>
        <div class="three">
          <img src="../../assets/toux1.png" alt="" />
          <div>12分钟前更新</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import f from "../../assets/toux1.png";
import title1 from "../../components/tit.vue";
export default {
  data() {
    return {};
  },
  methods: {
    goback() {
      this.$router.replace({ name: "shouye" });
    },
  },
  components: {
    title1,
  },
};
</script>
<style scoped lang='less'>
.main {
  // height: 100%;
  .contain {
    width: 100%;
    height: 460px;
    background-image: url("../../assets/findRoommate.jpg");
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
  }
  .card {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    .single {
    background: #fff;
    border-radius: 10px;
      margin-top:-30px;
      margin-bottom: 50px;
      position: relative;
      height: 344px;
      width: 710px;
      box-sizing: border-box;
      box-shadow: 0 0 5px #ccc;
      padding-left: 20px;
      padding-right: 24px;
      .one {
        font-size: 30px;
        padding-top: 8px;
        button {
          height: 50px;
          width: 120px;
          background: #fff;
          border: 1px solid #ccc;
          border-radius: 5px;
          margin-bottom: 16px;
          margin-right: 20px;
        }
      }
      .two {
        img {
          height: 208px;
          width: 365px;
        }
      }
      .three {
        //   overflow: hidden;
        img {
          position: absolute;
          bottom: 2px;
        }
        div {
          float: right;
          font-size: 30px;
          margin-top: -13px;
          color: rgb(253, 87, 84);
        }
      }
    }
  }
}
</style>
